<%@ taglib uri='/tags/struts-bean' prefix='bean' %>
<%@ taglib uri='/tags/struts-html' prefix='html' %>
<%@ taglib uri='/tags/struts-logic' prefix='logic' %>

<html:form action="/login"  onsubmit="return false;">
   <div onKeyPress="return processLogin(event, '/login.do?action=login')">
 		<table align="center">
            <tr>
               <td colspan="3">&nbsp;</td>
            </tr>
            <tr>
               <td colspan="3">
                  <fieldset>
                  	 <legend>User log in</legend>
                  	 <table>
                  	    <tr>
                  	       <td colspan="2" class="errortext_center">
							  <html:errors property="globalmessage"/><br>
							</td>
                  	    </tr>                  	 
                  	    <tr>
                  	       <td class="formLabel">User Id:</td>
                  	       <td>
                  	          <html:text property="userid"/>
                  	       </td>
                  	    </tr>
                  	    <tr>
                  	       <td colspan="2">&nbsp;</td>
                  	    </tr>
                  	    <tr>
                  	       <td class="formLabel">Password:</td>
                  	       <td>
                  	          <html:password property="password"/>
                  	       </td>
                  	    </tr>
                  	    <tr>
                  	       <td colspan="2">&nbsp;</td>
                  	    </tr>
                  	    <tr>
                  	       <td align="left">
                  	          <a href="<%=request.getContextPath()%>/register.do?action=register">register</a>
                  	       </td>                  	    
                  	       <td align="right">
                  	          <input type="button" name="test" value="Login" onClick="submitForm('/login.do?action=login')"/>
                  	       </td>
                  	    </tr>
                  	 </table>
                  </fieldset>
               </td>
            </tr>     
		</table> 
	</div>
</html:form>
